package com.example.controller;

import com.example.service.DataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.Synchronized;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;
import java.util.UUID;

@Slf4j
@RestController
@RequestMapping("/v1")
@Api(tags = "TestController-T", description = "TestController-D")
public class TestController {
    @Resource
    RestTemplate restTemplate;
    @Resource
    DataService dataService;

    @GetMapping("/2")
    @ApiOperation("v2")
    public String v2() {
        dataService.getSongs();
        return "";
    }

    @GetMapping("/")
    @ApiOperation("/")
    public String default1() {
        return "up";
    }
}
